package com.itany.cloud.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/**
 * Author:shixiaojun@itany.com
 * Date:2022/5/28 9:44
 * Version:1.0-SNAPSHOT
 * Description:
 */
@ApiModel("这是用户的实体对象")
public class User implements Serializable {

    @ApiModelProperty("用户id,主键字段")
    private Integer id;
    @ApiModelProperty("用户的用户名")
    private String username;
    @ApiModelProperty("用户的密码")
    private String password;
    @ApiModelProperty("用户的手机号码")
    private String phone;
    @ApiModelProperty("用户的地址")
    private String address;

    public User() {
    }

    public User(Integer id, String username, String password, String phone, String address) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.address = address;
    }

    public User(String username, String password, String phone, String address) {
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.address = address;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
